import { AnyObject } from "antd/es/_util/type";
const AIHeader = ({ resetIndex, img, Closed, title }: AnyObject) => {
  return (
    <div className="p-3.5 bg-deep-black flex  justify-between w-full items-center">
      <div className="px-2 py-1 flex">
        <img src={img} className="w-3.5 h-3.5 mr-1.5" alt="" />
        <div className="text-white text-xs">{title}</div>
      </div>
      <img
        src={Closed}
        className="w-3.5 h-3.5 cursor-pointer"
        alt=""
        onClick={resetIndex}
      />
    </div>
  );
};
export default AIHeader;
